package it.univaq.mwt.model.bean;

import java.util.List;

import it.univaq.mwt.exceptionmonitor.WishlistrMessage;
import it.univaq.mwt.model.entity.News;
import javax.ejb.Remote;

@Remote
public interface NewsBeanRemote {
	void registerNews(News news) throws WishlistrMessage;
	void setNews(News n) throws WishlistrMessage;
	void delete(int id) throws WishlistrMessage;
	void editNews(News n) throws WishlistrMessage;
	List<News> getList(int i, int j) throws WishlistrMessage;
	News getNews(int id) throws WishlistrMessage;
	int getNewsNumber() throws WishlistrMessage;
	public List<News> getNewsListSmall(int limit) throws WishlistrMessage;
}
